package com.zilue.hfqueue.channel;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 7位开始符|总长度|时间戳|64位Id|12位IP||消息体|结束符|
 * String|Long|String（64）|IP|Long|String|String|
 * Created by ZD on 2017/6/1.
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Message implements Serializable {
    private String id;
    private String ip;
    private String topic;
    private Long timestamp;
    private Serializable data;

}
